package com.jason.fingerprint.listener;

import com.jason.fingerprint.beans.ui.FingerPrintBean;

/**
 * @Description: 指纹模块回调函数
 * @Author: Jason Zhang
 * @Date: 2016/10/8 0008
 */

public interface OnFingerPrintListener {

    //开始指纹采集或者验证
    void onStart();

    //指纹采集或者验证中
    void onLoading();

    ////指纹采集成功
    void onRegisterSuccess(byte[] model);

    void onImageSuccess(byte[] model);

    //指纹验证成功
    void onValidateSuccess(byte[] model, int score);

    //指纹验证成功
    void onValidateSuccess(FingerPrintBean bean, int score);

    //指纹采集或者验证失败
    void onFailed();

    //指纹采集或者验证是否显示指纹图像，如果是true,onImageSuccess()有值
    boolean showImage();
}
